package com.ydzh.kfqgwvisitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author xh
 * @date 2021/10/29 10:50
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ShortMessage对象", description = "短信信息表 ")
public class ShortMessage {

    @ApiModelProperty(value = "短信ID")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "访客表ID")
    @TableField("VISITOR_ID")
    private Long visitorId;

    @ApiModelProperty(value = "0 访客录脸短信   1  被访人同意与否短信  2  海康平台录入成功与否短信")
    @TableField("MESSAGE_TYPE")
    private Integer messageType;

    @ApiModelProperty(value = " 0未读  1 已读")
    @TableField("IS_READ")
    private Integer isRead;

    @ApiModelProperty(value = "接收短信人的姓名")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "接收短信的手机号")
    @TableField("PHONE_NO")
    private String phoneNo;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

}
